package models

var ClassStatus map[int]string

// 班级
type Class struct {
	Id          int64      `orm:"description(自增主键)"`
	Users       []*User    `orm:"reverse(many)" json:"-"`
	School      *School    `orm:"rel(fk);null;default(0);description(所属学校)" json:"-"`
	Name        string     `orm:"description(班级名称)"`
	Sn          string     `orm:"description(班级编号，添加时生成的)"`
	Status      int        `orm:"description(状态，0禁用 1正常)" json:"-"`
	StatusShow  string     `orm:"-" json:"-"`
	StudentList []*Student `orm:"-"`
	StudentNum  int64      `orm:"-"`
}

func init() {
	ClassStatus = map[int]string{
		0: "禁用",
		1: "正常",
	}
}
